<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <title>鲁班 - 系统用户编辑</title>
        <!--[if lt IE 9]>
            <meta http-equiv="refresh" content="/ie" />
        <![endif]-->
        <link rel="shortcut icon" href="favicon.ico">
	    <link th:href="@{/components/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/components/font-awesome/4.6.3/css/font-awesome.min.css}" rel="stylesheet">
	    <link th:href="@{/css/animate.min.css}" rel="stylesheet">
	    <link th:href="@{/css/style.css}" rel="stylesheet">
    </head>
    <body>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="form1">
                	<input th:if="${item ne null}" type="hidden" name="id" th:value="${item?.id}" />
					<input th:if="${item ne null}" type="hidden" name="version" th:value="${item?.version}" />
                    <div class="form-group">
                        <label class="col-sm-3 control-label">账号：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="username" name="username" placeholder="请输入账号"  th:readonly="${item ne null}" th:value="${item?.username}">
                                <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> -->
                            </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">姓名：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="name" name="name" placeholder="请输入姓名"  th:value="${item?.name}">
                                <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> -->
                            </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">电话：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="mobile" name="mobile" placeholder="请输入电话"  th:value="${item?.mobile}">
                                <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> -->
                            </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">邮箱：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="email" name="email" placeholder="请输入邮箱"  th:value="${item?.email}">
                                <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> -->
                            </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">头像：</label>
                            <div class="col-sm-8">
<!--                                 <input type="text" class="form-control" id="avator" name="avator" placeholder="请输入头像"  th:value="${item?.avator}"> -->
                                <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> -->
                                <input type="hidden" id="avator" name="avator" th:value="${item?.avator}">
                            </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">备注：</label>
                        <div class="col-sm-8">
                            <textarea name="remark" id="remark" class="form-control" placeholder="说点什么...100个字符以内" dragonfly="true" th:value="${item?.remark}"></textarea>
                        </div>
                    </div>
<!--                 		/** -->
<!-- 						 * 部门id -->
<!-- 						 */ -->
<!-- 						private Integer orgId; -->
<!-- 						/** -->
<!-- 						 * 角色id -->
<!-- 						 */ -->
<!-- 						private Integer roleId; -->
					<!-- 等可乐的部门和角色 -->
					<input type="hidden" name="orgId" th:value="${item eq null} ? '1' : ${item?.orgId}" />
					<input type="hidden" name="roleId" th:value="${item eq null} ? '1' : ${item?.roleId}" />
				    <div class="form-group">
                        <label class="col-sm-3 control-label">性别：</label>
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" name="sex" value="0" th:checked="${item?.sex == 0}"> <i></i> 未知
                                </label>
                                <label>
                                    <input type="radio" name="sex" value="1" th:checked="${item eq null} ? 'checked' : ${item?.sex == 1}"> <i></i> 男
                                </label>
                                <label>
                                    <input type="radio" name="sex" value="2" th:checked="${item?.sex == 2}"> <i></i> 女
                                </label>
                            </div>
                    </div>
				    <div class="form-group">
                        <label class="col-sm-3 control-label">状态：</label>
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" name="status" value="0" th:checked="${item?.status == 0}"> <i></i> 停用
                                </label>
                                <label>
                                    <input type="radio" name="status" value="1" th:checked="${item eq null} ? 'checked' : ${item?.status == 1}"> <i></i> 正常
                                </label>
                                <label>
                                    <input type="radio" name="status" value="2" th:checked="${item?.status == 2}"> <i></i> 锁定
                                </label>
                            </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-3">
                            <button class="btn btn-primary" type="submit">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script type="text/javascript" th:src="@{/js/common/require.min.js}"></script>
		<script type="text/javascript" th:src="@{/js/common/config.js}"></script>
		<script type="text/javascript" th:src="@{/js/module/sys/user/sys_user_edit.js}"></script>
    </body>
</html>